package com.jalarbee.core.util;

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

public final class Countries {

	public static List<String> getCountries(Locale inLocale) {
		List<String> countries = new ArrayList<String>();
		for (Locale locale : Locale.getAvailableLocales()) {
			countries.add(locale.getDisplayCountry(inLocale));
		}
		return countries;
	}

	public static List<String> getCountries() {
		List<String> countries = new ArrayList<String>();
		for (Locale locale : Locale.getAvailableLocales()) {
			countries.add(locale.getDisplayCountry());
		}
		return countries;
	}

	public static void main(String[] args) {
		System.out.println(getCountries(Locale.FRANCE));
		System.out.println(getCountries());
	}
}
